package com.goldgov.information.service;
public enum CrawlerTempletEnum {
	
	//爬虫模板
	templet1("3"),
	templet2("4"),
	templet3("dede5ece-9175-11e8-9210-0242ac130005"),
	;
	
	private String tempID;
	CrawlerTempletEnum(String ID){
		setTempID(ID);
	}
	
	public String getTempID() {
		return tempID;
	}
	void setTempID(String tempID) {
		this.tempID = tempID;
	}
	
	//根据参数返回实例
	public static CrawlerTempletEnum val(String operate) {
        for(CrawlerTempletEnum s : values()) {    //values()方法返回enum所有实例
            if(operate.equals(s.getTempID()))
                return s;
        }
        return null;
    }
}